<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>条件判断语句</title>
    <script type="text/javascript">
        // 条件判断
        var nowDistance = 15
        var distance = 10;
        if (distance < nowDistance) {
            console.log('自动驾驶');
        }else{
            console.log('人为驾驶');
        }
    </script>
</head>
<body>
    
</body>
</html>